package com.xlous.example.demo.service;

import com.xlous.example.demo.mapper.CtDemoMapper;
import com.xlous.example.demo.model.CtDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoService {

     @Autowired(required = false)
     private CtDemoMapper ctDemoMapper;

    public void findCustName(String userName){
        System.out.println("描述信息："+userName);
    }

    public CtDemo findListById(String Id){
        return ctDemoMapper.selectByPrimaryKey(Id);
    }
}
